﻿using CoreModule;

using EasyNetQ;

using (var bus = RabbitHutch.CreateBus("host=192.168.210.200:36005;virtualHost=/;timeout=60;username=admin;password=123456")) {
    bus.SendReceive.Receive<TextMessage>("us.msg", msg => Console.WriteLine(DateTime.Now + "-接收消息: {0}", msg.Text));
    Console.ReadLine();
}